package beans;

//~--- non-JDK imports --------------------------------------------------------

import dto.Sections;
import dto.Topics;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

//~--- JDK imports ------------------------------------------------------------

import java.util.Vector;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Deena
 */
public class DisplayTopicActionFormBean extends org.apache.struts.action.ActionForm {
    Vector<Topics> topics = new Vector<Topics>();
    private Vector<Sections> sec = new Vector<Sections>();
    private int number[];
    private String name;
    private Integer sectionId;

    public DisplayTopicActionFormBean() {
        super();
    }

    public Vector<Topics> getTopics() {
        return topics;
    }

    public void setTopics(Vector<Topics> topics) {
        this.topics = topics;
    }

    /**
     * @return the number
     */
    public int[] getNumber() {
        return number;
    }

    /**
     * @param number the number to set
     */
    public void setNumber(int[] number) {
        this.number = number;
    }

    /**
     * @return the sectionId
     */
    public Integer getSectionId() {
        return sectionId;
    }

    /**
     * @param sectionId the sectionId to set
     */
    public void setSectionId(Integer sectionId) {
        this.sectionId = sectionId;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        return null;
    }
    public void reset(ActionMapping actionMapping, HttpServletRequest request) {
        number = new int[0];
        System.out.println("reset");
    }

    /**
     * @return the sec
     */
    public Vector<Sections> getSec() {
        return sec;
    }

    /**
     * @param sec the sec to set
     */
    public void setSec(Vector<Sections> sec) {
        this.sec = sec;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
